const { defineConfig } = require("@vue/cli-service");
module.exports = defineConfig({
  transpileDependencies: true,
  chainWebpack: (config) => {
    config.plugin("html").tap((args) => {
      args[0].title = "co2emission";
      return args;
    });
  },
  devServer: {
    proxy: {
      "/api": {
        target: "http://114.132.216.136:8080",
        // target: "http://114.132.216.136:8080",

        changeOrigin: true,
        pathRewrite: { "^/api": "" },
      },
    },
  },
  lintOnSave: false,
  transpileDependencies: true,
});
